/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-08-22 16:18:21
 * @LastEditors: turingchang
 * @LastEditTime: 2020-08-28 17:45:15
 */

'use strict';


const BaseController = require('./base/base');

class TestController extends BaseController {

  async index(){
    //this.ctx.redirect('../../index.html');
  }
  
  async test() {  
    var data = {
      name:'uuuuuuu',
      pwd:'adsfafafasd'
    };  
    // var data = this.app.utils.time.getTimeSpan();   
    //var data =this.app.utils.generator.avatars('书',null,null,null);
    //var data =this.app.utils.generator.generateUid(false);   
    //var data = this.app.utils.string.zhmoney.cn.toMoney("1");   
    //data = this.app.utils.string.pinyin.convert('QQQQ这是一个汉语拼音库',0, false, false, ' ');
    //data =this.app.utils.generator.svgCaptcha.create();    
    //data ==this.app.utils.emoji[0];
    //data = this.app.utils.string.encode(this.app.utils.emoji[0]);
    //var time ='2020-08-24 23:36:10';
    //data =this.app.utils.time.formatMoment(time);
    //var arr =[1,2,3,4,2,6,4];
    //data = this.app.utils.array.deduplication(arr);
    //this.app.getLogger('requestLogger').info(data);
    //this.app.getLogger('requestLogger').debug(data);
    //this.app.logger.info('666666');
    //this.ctx.requestLogger.error(data,'error info me ');
    //console.log(this.ctx.app.config.hasOwnProperty("jwt"));
    //console.log(this.ctx.app.config["jwt"]);
    console.log('彩虹屁的彩虹屁'.rainbow);
    this.ctx.outSuccess(null,data);
  }
}

module.exports = TestController;
